package com.designpatternspart2.creationaldesignpatterns.prototypepattern;

/**
 * File Name: Person.java
 * Version:
 * Description:
 * Package: com.designpatternspart2.prototypepattern
 * Author: Lance
 * Date: Apr 26, 2012
 */
public class Person implements Prototype
{

    String name;

    public Person(String name)
    {
        this.name = name;
    }

    @Override
    public Prototype doClone()
    {
        return new Person(name);
    }

    @Override
    public String toString()
    {
        return "This person is named " + name;
    }
}
